package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cft
 * @since 2022-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pcs_first_apo_selected_time")
@ApiModel(value="FirstApoSelectedTime对象", description="")
public class FirstApoSelectedTime extends Model<FirstApoSelectedTime> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "f_apo_id", type = IdType.AUTO)
    private Long fApoId;

    @TableField("stu_id")
    private Long stuId;

    @TableField("selected_period_1")
    private Integer selectedPeriod1;

    @TableField("selected_period_2")
    private Integer selectedPeriod2;

    @TableField("selected_period_3")
    private Integer selectedPeriod3;


    @Override
    protected Serializable pkVal() {
        return this.fApoId;
    }

    /*检查是否填写完整*/
    public boolean checkInfo(){
        if(this.stuId==null||this.selectedPeriod1==null||this.selectedPeriod2==null||this.selectedPeriod3==null){
            return true;
        }else{
            return false;
        }
    }

}
